package ai.moran.demo.enums;

public enum TurnstileEvents {
    /**动作*/
    COIN, PUSH;
    public static TurnstileEvents getEventByString(String event){
        for (TurnstileEvents turnstileEvents:TurnstileEvents.values()
             ) {
            if(event.equals(turnstileEvents.toString())){
                return turnstileEvents;
            }
        }
        return null;
    }
}